#include <iostream>
#include <cstdio>
#include <algorithm>
using namespace std;

int main()
{
    int ans = 0;
    for (int i = -30; i <= 30; i++)
        for (int j = -30; j <= 30; j++)
            for (int k = -30; k <= 30; k++)
            {
                if (2 * i + 3 * j + 5 * k == 100)
                    ans += 1;
                cout << i << " " << j << " "<<  k << endl;
            }
    cout << ans;
}